# from django.conf.urls import url
#
# from . import views
#
# urlpatterns = (
#     url(r'^$', views.home),
#     url(r'^administrator/$', views.administrators),
#     url(r'^submitter/$', views.submitter),
#
#     # 以下方法需要修改
#     url(r'^get_org_list/$', views.get_org_list),
#
# )
from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    path('administrators/', views.administrators, name='administrators'), # 管理员√
    path('submitter/', views.submitter, name='submitter'), # 内容提交方√



    path('my_apply/', views.my_apply, name='my_apply'),  # 我的申报
    path('search_qa_pair/', views.search_qa_pair, name='search_qa_pair'),
    path('submit_ticket/', views.submit_ticket, name='submit_ticket'),




    path('my_check/', views.my_check, name='my_check'),  # 我的申报
    path('qa_pairs/create/', views.qa_pair_create, name='qa_pair_create'),  # 新增问答对
    path('qa_pairs/update/<int:qa_id>/', views.qa_pair_update, name='qa_pair_update'),  # 编辑问答对
    path('qa_pairs/delete/<int:qa_id>/', views.qa_pair_delete, name='qa_pair_delete'),  # 删除问答对


    path('scenic-spots/', views.scenic_spot_list, name='scenic_spot_list'),  # 查看所有景点√
    path('scenic_spots/create/', views.scenic_spot_create, name='scenic_spot_create'), # 新增景点
    path('scenic_spots/update/<str:jq_id>/', views.scenic_spot_update, name='scenic_spot_update'), # 编辑景点
    path('scenic_spots/delete/<str:jq_id>/', views.scenic_spot_delete, name='scenic_spot_delete'), # 删除景点
    path('scenic_spots/<str:jq_id>/', views.scenic_spot_detail, name='scenic_spot_detail'), # 查看单个景点信息

    # QaPair URLs
    path('qa_pairs/', views.qa_pair_list, name='qa_pair_list'),  # 查看所有问答对√


    # DataTicket & DataChange URLs
    path('submit_ticket/', views.submit_ticket, name='submit_ticket'), # 查看所有数据提单
    path('review_ticket/<int:ticket_id>/', views.review_ticket, name='review_ticket'), # 审核数据提单
    # 添加其他URL模式以匹配问答对、数据提单等的视图
]
